﻿using System;
using System.Windows.Media;
using System.Windows;
using System.Windows.Input.StylusPlugIns;
using System.Windows.Input;
using System.Windows.Ink;

namespace editor
{
    // A class for rendering custom strokes
    public class PolygonStroke : Stroke
    {
        TypeOfPolygon Type;

        Point PositionOfwhereToLookFromAtThePolygon;

        string _name;

        public PolygonStroke(Stroke stroke)
            : base(stroke.StylusPoints, stroke.DrawingAttributes)
        {
            _name = "New Polygon";
            Type = TypeOfPolygon.LookAt;
            PositionOfwhereToLookFromAtThePolygon = new Point(-1, -1);
        }

        public void SetType(TypeOfPolygon TOP)
        {
            Type = TOP;
        }

        public TypeOfPolygon GetType()
        {
            return Type;
        }

        

        public string getName()
        {
            return _name;
        }

        public void setName(string name)
        {
            _name = name;
        }

        public void SetPositionOfwhereToLookFromAtThePolygon(float x, float y)
        {
            PositionOfwhereToLookFromAtThePolygon = new Point(x, y);
        }

        public Point GetPositionOfwhereToLookFromAtThePolygon()
        {
            return PositionOfwhereToLookFromAtThePolygon;
        }

    }
}